package pyip.lib.javalearn.test;

import java.util.ArrayList;
import java.util.List;

public class TT {

    int i = 0;

    public int getI() {
        return i;
    }

    public TT() {
        i = 10;
    }

    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            list.add(i);
        }

        int length = list.size();
        for (int i = 0; i < length; i++) {
            System.out.println(list.remove(i));
        }
    }
}